use std::fmt::{Display, Formatter, Result};

fn main() {
    println!("Display {} :", Structure(30));
    println!("Debug {:?} :", Structure(30));
}

#[derive(Debug)]
struct Structure(i32);

impl Display for Structure {
    fn fmt(&self, f: &mut Formatter<'_>) -> Result {
        write!(f, "{}", self.0)
    }
}
